package com.lanxin.controller;

import com.lanxin.feignclient.ProductServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by cyh on 2021/3/4.
 */
@RestController
@RequestMapping("msg")
public class MsgController {

    @Autowired
    private ProductServiceClient productServiceClient;

    @RequestMapping("listmsg")
    public String listmsg(){
        return "listmsg "+productServiceClient.listproduct();
    }
}
